/**
 * Copyright (c) 2016-2019 优博信息科技 All rights reserved.
 *
 * https://www.jnyoubo.com
 *
 * 版权所有，侵权必究！
 */

package com.youbo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.youbo.form.LoginForm;
import com.youbo.entity.UserEntity;

import java.io.Serializable;
import java.util.Map;

/**
 * 用户
 *
 * @author macy
 */
public interface UserService extends IService<UserEntity> {

	UserEntity queryByMobile(String mobile,Integer tokenType);

	/**
	 * 用户登录
	 * @param form    登录表单
	 * @return        返回登录信息
	 */
	Map<String, Object> login(LoginForm form);


	UserEntity getById(Serializable id,Integer tokenType);
}
